<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<link rel="stylesheet" href="${initParam.root }/css/member/main_memberInfo.css">
<script type="text/javascript">
	$(function(){
		$("#goHome").click(function(){
			location.href="member.do?command=home";
		});
		$("#deleteMember").on("click",function(){
			var flag=confirm("회원탈퇴하시겠습니까?");
				if(flag){
					location.href="member.do?command=deleteMember&m_id="+"${sessionScope.loginMember.mvoLogin.m_id }";
				}
		});//delete on
	$("#goUpdate").on("click",function(){
			var flag=confirm("회원정보를 수정하시겠습니까?");
			if(flag){
				location.href="member.do?command=updatePage";
			}
		});//update on
	$("#getMyRecipe").on("click",function(){
		location.href="recipe.do?command=getMyRecipe";
});
	});//load
</script>

<h3><img src="${initParam.root }/img/main/detailInfo/main-detail-title.gif"></h3>
<div id="details">
	<ul>
		<li>아이디:${sessionScope.loginMember.mvoLogin.m_id }</li>
		<li>이름:${sessionScope.loginMember.mvoLogin.m_name }</li>
		<li>이메일:${sessionScope.loginMember.mvoLogin.m_email }</li>
		<li>선호요리:${sessionScope.loginMember.mvoLogin.m_likeCook }</li>
		<li>결혼유무:${sessionScope.loginMember.mvoLogin.m_married }</li>
	<c:choose>
	<c:when test="${sessionScope.loginMember.mvoLogin.m_gender=='m' }">
		<li>성별: 남</li>
	</c:when>
	<c:otherwise>
		<li>성별: 여</li>	
	</c:otherwise>
	</c:choose>
	<c:forEach items="${sessionScope.loginMember.anniLogin}" var="anni">
		<li>${anni.a_kind} : ${anni.a_date}</li>
	</c:forEach>
	</ul>
	<ul>
		<li><input type="button"  id="deleteMember" value="회원탈퇴" class="button_img"></li>
		<li><input type="button"  id="goUpdate" value="수정페이지" class="button_img"></li>
		<li><input type="button"  id="getMyRecipe" value="My Recipe" class="button_img"></li>
	</ul>
</div>



    